package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdSensitiveService extends IService<AdSensitive> {
    /**
     * 删除
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);

    /**分页查询敏感词汇
     *
     * @param dto
     * @return
     */
    ResponseResult querySensitiveList(SensitiveDTO dto);

    /**保存敏感词
     *
     * @param adSensitive
     * @return
     */
    ResponseResult insertSensitive(AdSensitive adSensitive);

    /**修改敏感词
     *
     * @param adSensitive
     * @return
     */
    ResponseResult updateSensitive(AdSensitive adSensitive);

    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();
}
